//新增或修改志愿者信息
export const addOrUpdateApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post('/api/volunteer/addOrUpdate', data)
	return res
}
//  根据字典类型查询字典信息
export const findDictsApi = async (data) => {
	const {
		data: res
	} = await uni.$http.post(`/api/systemDictData/findDictData`,data)
	return res
}

// 志愿者-我的收入
export const queryMyIncomeApi = async (volunteerCode) => {
	const {
		data: res
	} = await uni.$http.post(`/api/volunteer/queryMyIncome/${volunteerCode}`)
	return res
}

// 志愿者-详情查看
export const queryDetailApi = async (id) => {
	const {
		data: res
	} = await uni.$http.get(`/api/volunteer/queryDetailById/${id}`)
	return res
}

// 上下单
export const upOrDownOrderApi = async (orderId, type, price) => {
	const {
		data: res
	} = await uni.$http.post(`/api/homemaking/upOrDownOrder/${orderId}/${type}/${price}`)
	return res
}

